//
//  ViewController.m
//  OrderDish
//
//  Created by mac on 16/11/25.
//  Copyright © 2016年 LiWenqing. All rights reserved.
//

#import "ViewController.h"
#import "LanguageVC.h"
#import "CommomTool.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSLog(@"%@",NSHomeDirectory());
}
- (IBAction)goToWebPage:(id)sender {
    NSString *str=@"http://www.baidu.com";
    //根据网址字符串创建URL
    NSURL *url=[NSURL URLWithString:str];
    //应用程序打开连接,跳出了当前的应用程序
    [[UIApplication sharedApplication]openURL:url];
}
- (IBAction)goToOrderSystem:(id)sender {
    LanguageVC *lvc=[[LanguageVC alloc]init];
    [CommomTool transformWithViewController:lvc];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
